libxl: ocaml: guard x86-specific functions behind an ifdef
authorAnil Madhavapeddy <anil@recoil.org>
Sat, 11 Jan 2014 23:33:25 +0000 (23:33 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Jan 2014 13:08:56 +0000 (13:08 +0000)
commit9b2691bdb499a3c2a136596658571056df1d42c8
treedbb578dc507ef14c620c4839b7c2f3f51bcc43a4
parentf91dc2000a86d0af00f52b527fd28df00070f9cb
libxl: ocaml: guard x86-specific functions behind an ifdef

The various cpuid functions are not available on ARM, so this
makes them raise an OCaml exception.  Omitting the functions
completely results in a link failure in oxenstored due to the
missing symbols, so this is preferable to the much bigger patch
that would result from adding conditional compilation into the
OCaml interfaces.

With this patch, oxenstored can successfully start a domain on
Xen/ARM.

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Acked-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/libs/xc/xenctrl_stubs.c